package com.bxj.common.utils;

import java.util.List;

/**
 * Created by baixiujiang on 17/10/18.
 */
public class ArrayUtils {
    public static <T> T getFirst(List<T> list) {
        return list.isEmpty() ? null : list.get(0);
    }

    public static boolean isEmpty(List list) {
        return list == null || list.isEmpty();
    }
}
